package com.xiao.mall.message.domain.enums;

import com.google.common.collect.Lists;
import com.xiao.mall.foundation.entity.EnumValue;

import java.util.List;

public enum NotificationTopic implements EnumValue {

    ORDER("订单物流"),
    PROMOTION("优惠促销"),
    NOTIFICATION("账户通知"),
    BONUS("奖金通知"),
    LIVE("直播"),
    REWARD("中奖通知");

    private final String desc;

    NotificationTopic(String desc) {
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public static List<NotificationTopic> toList() {
        List list = Lists.newArrayList();
        for (NotificationTopic topic : NotificationTopic.values()) {
            list.add(topic);
        }
        return list;
    }
}
